$(document).ready(function() {
    layui.use('element', function() {
        var element = layui.element;
    });
});